package com.ruoyi.file.api.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件服务对象 sys_file
 * 
 * @author ruoyi
 * @date 2022-04-08
 */
public class SysFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件md5 */
    private String id;

    /** 文件名称 */
    @Excel(name = "文件名称", readConverterExp = "$column.readConverterExp()")
    private String name;

    /** 是否图片 */
    @Excel(name = "是否图片", readConverterExp = "$column.readConverterExp()")
    private Boolean isImg;

    /** 文件类型 */
    @Excel(name = "文件类型", readConverterExp = "$column.readConverterExp()")
    private String contentType;

    /** 文件大小 */
    @Excel(name = "文件大小", readConverterExp = "$column.readConverterExp()")
    private Long size;

    /** 物理路径 */
    @Excel(name = "物理路径")
    private String path;

    /** 文件Url */
    @Excel(name = "url", readConverterExp = "$column.readConverterExp()")
    private String url;

    /** 文件源路径 */
    @Excel(name = "文件源路径", readConverterExp = "$column.readConverterExp()")
    private String source;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIsImg(Boolean isImg)
    {
        this.isImg = isImg;
    }

    public Boolean getIsImg()
    {
        return isImg;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("isImg", getIsImg())
            .append("contentType", getContentType())
            .append("size", getSize())
            .append("path", getPath())
            .append("url", getUrl())
            .append("source", getSource())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
